import request from '@/utils/request'

// 查询单据类型映射列表
export function listDoctype(query) {
  return request({
    url: '/barcode/doctype/list',
    method: 'get',
    params: query
  })
}

// 查询单据类型映射详细
export function getDoctype(id) {
  return request({
    url: '/barcode/doctype/' + id,
    method: 'get'
  })
}

// 新增单据类型映射
export function addDoctype(data) {
  return request({
    url: '/barcode/doctype',
    method: 'post',
    data: data
  })
}

// 修改单据类型映射
export function updateDoctype(data) {
  return request({
    url: '/barcode/doctype',
    method: 'put',
    data: data
  })
}

// 删除单据类型映射
export function delDoctype(id) {
  return request({
    url: '/barcode/doctype/' + id,
    method: 'delete'
  })
}
